#!/bin/bash

# 检查/etc/issue.net是否存在，如果不存在则创建
if [ ! -f "/etc/issue.net" ]; then
    echo "创建 /etc/issue.net 文件"
    touch /etc/issue.net
fi

# 设置正确的所有者和权限
chmod root:root /etc/issue.net
chmod 644 /etc/issue.net

echo "/etc/issue.net 权限已配置完成"
